<?php

/**
 * 类寄存器
 *
 * 寄存类的实例
 *
 * @author Lan <lanyg.com@gmail.com>
 * @link http://www.lanyg.com/projects/lanp
 * @copyright Copyright &copy; 2011-2012 Yanguang Lan (www.lanyg.com)
 * @license LGPL (http://www.gnu.org/licenses/lgpl.html)
 * @version $Id$
 */

/**
 * MVC_Register
 *
 * @package lanp
 * @author Lan
 */

class MVC_Register
{

    /*
     * @the vars array
     * @access private
     */
     private $vars = array();

    /**
     * 构造函数
     *
     * @access public
     */

    public function  __construct()
    {

    }

    /**
     *
     * @set undefined vars
     *
     * @param string $index
     *
     * @param mixed $value
     *
     * @return void
     *
     */
     public function __set($index, $value)
     {
            $this->vars[$index] = $value;
     }

     /**
     *
     * @get variables
     *
     * @param mixed $index
     *
     * @return mixed
     *
     */
     public function __get($index)
     {
            return $this->vars[$index];
     }
}
?>